Adding Dynamic Types to C#
نویسندگان
چکیده
Developers using statically typed languages such as C and Java increasingly have to interoperate with APIs and object models defined in dynamic languages. This impedance mismatch results in code that is difficult to understand, awkward to analyze, and expensive to maintain. In this paper we describe new features in C4.0 that support the safe combination of dynamically and statically typed code by deferring type checking of program fragments with static type dynamic until runtime. When executed, these dynamic code fragments are typechecked and resolved using the same rules as statically typed code. We formalize these features in a core fragment of C and prove important safety properties. In particular, we show that subtyping remains transitive.
منابع مشابه
Plunging Airfoil Load Characteristics Equipped with Gurney Flap
Numerous experiments have been conducted on plunging Eppler 361 airfoil in a subsonic wind tunnel. The experimental tests involved measuring the surface pressure distribution over the airfoil at Re=1.5×105. The airfoil was equipped with Gurney flap(heights of 2.6, 3.3 and 5% chord) and plunged at 6cm amplitude. The unsteady aerodynamic loads were calculated from the surface pressure measurement...
متن کاملDynamic Object Model
A system with a Dynamic Object Model allows the types of objects to change at runtime. This includes adding new types, changing existing ones, and changing the relationships between types. Taken together, all types and their relationships form a domain-specific model. Underlying such a dynamic object model is a framework that acts much like a domain-specific modeling language. Dynamic Object Mo...
متن کاملRelationship between Static and Dynamic Balance Characteristics with Types of MS in Women
MS is a lifelong disease that could involve the person in different forms. Knowing balance characteristics of different types of this chronic disease helps the specialists for controlling their complications. The purpose of this study was to recognize static and dynamic balance of different type of MS and to compare MS patients with healthy individual. 54 MS women in three groups (27- Relapsing...
متن کاملIdentification Effect of Nanoclay on Engineering Properties of Asphalt Mixtures
Nanoclays are new generation of processed clays of interest in a wide range of high performance composites. In other words, nanoclay is defined as a clay that can be modified to make the clay complexes compatible with organic monomers and polymers. Here, it can be said that the polymeric nanocomposites are among the most exciting and promising classes of materials discovered recently. A number ...
متن کاملCured Poly(ethylene-g-maleic anhydride)/Graphene Nanocomposite: Properties and Characterization
Poly(ethylene-g-maleic anhydride) (PEMA)/graphene nanoplatelets (xGn) (PEMA-xGn) composites were prepared by melt dispersion in an internal shear mixer. By adding dicumyl peroxide (DCP), cured poly(ethylene-g-maleic anhydride) C-PEMA was also produced. Different amounts of xGn were introduced into the PEMA in range of 0.5–5 wt. %. The effects of the sequence of feeding additives into the mixer ...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2010